package com.cn.longdistancebusstation.global;

import com.cn.longdistancebusstation.annotation.LoginStatus;

import java.math.BigDecimal;

/**
 * Created by mal on 2018/1/21.
 */

public class GlobalVariable {
    private static String userID;

    private static @LoginStatus int loginStatus;

    //接站服务的条件
    private static  int ticketNumForCondition;
    private static BigDecimal discountValueForCondition;
    ////


    public static int getTicketNumForCondition() {
        return ticketNumForCondition;
    }

    public static void setTicketNumForCondition(int ticketNumForCondition) {
        GlobalVariable.ticketNumForCondition = ticketNumForCondition;
    }

    public static BigDecimal getDiscountValueForCondition() {
        return discountValueForCondition;
    }

    public static void setDiscountValueForCondition(BigDecimal discountValueForCondition) {
        GlobalVariable.discountValueForCondition = discountValueForCondition;
    }

    public static String getUserID() {
        return userID;
    }

    public static void setUserID(String userID) {
        GlobalVariable.userID = userID;
    }

    public static int getLoginStatus() {
        return loginStatus;
    }

    public static void setLoginStatus(int loginStatus) {
        GlobalVariable.loginStatus = loginStatus;
    }
}
